import request from "@/utils/request";

// 查询报工列表
export function listProdReportWork(query) {
  return request({
    url: "/prod/ProdReportWork/list",
    method: "get",
    params: query,
  });
}
// 查询报工详细
export function getProdReportWork(id) {
  return request({
    url: "/prod/ProdReportWork/" + id,
    method: "get",
  });
}

// 查询退料入仓信息
export function getReturnMaterialsInfo(id) {
  return request({
    url: "/wh/inStorehouse/getReturnMaterialsInfo/" + id,
    method: "get",
  });
}

// 退料入仓
export function returnMaterials2WH(id) {
  return request({
    url: "/prod//ProdReportWork/returnMaterials2WH/" + id,
    method: "get",
  });
}
// 新增报工
export function addDoReportWork(data) {
  return request({
    url: "/prod/ProdReportWork/doReportWork",
    method: "post",
    data: data,
  });
}

// 重新报工
export function againReportWork(data) {
  return request({
    url: "/prod/ProdReportWork/againReportWork",
    method: "post",
    data: data,
  });
}
// 审核
export function auditReportWork(data) {
  return request({
    url: "/prod/ProdReportWork/audit",
    method: "post",
    data: data,
  });
}

// 审核
export function slittingRewinding(data) {
  return request({
    url: "/prod/ProdReportWork/slittingRewinding",
    method: "post",
    data: data,
  });
}
